import Vue from 'vue'
import VueRouter from 'vue-router'
import Index from "@/views/Index"
import Login from "@/views/Login"

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'index',
    component: Index
  },
  {
    path: '/login',
    name: 'Login',
    component: Login
  },
  /*{
    path: '/about',
    name: 'about',
    component: () => import(/!* webpackChunkName: "about" *!/ '../views/AboutView.vue')
  }*/
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
